package com.lzy.plugintest;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class ProxyActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_third);
    }
    public void jump(View view) {

        //构造函数中指定ACTION是Intent.ACTION_VIEW，即用于打开浏览器
        Intent intent = new Intent(Intent.ACTION_VIEW);
        //指定要打开的网址
        intent.setData(Uri.parse("https://www.baidu.com"));
        startActivity(intent);
    }
}
